package com.zlb.knifeconsumer.controller;

import com.zlb.knifeconsumer.service.ITestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {
    @Resource
    private ITestService testService;

    @RequestMapping(value = "/testQuery",produces = "application/json;charset=UTF-8")
    public String testQuery() {
        String name = testService.queryTest();
        System.out.println("feign返回的name:" + name);
        return name;
    }
}
